package com.tiennt.android.callnotes.models.viewholders;

import com.tiennt.android.callnotes.R;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

public class CallLogViewHolder {
	private View base;
	private ImageView imgvCallType;
	private TextView tvContactName;
	private TextView tvNumber;
	private TextView tvTime;
	private TextView tvLong;

	public CallLogViewHolder(View base) {
		this.base = base;
	}

	public ImageView getImgvCallType() {
		if (imgvCallType == null) {
			imgvCallType = (ImageView) base.findViewById(R.id.imgvCallType);
		}
		return imgvCallType;
	}

	public TextView getTvContactName() {
		if (tvContactName == null) {
			tvContactName = (TextView) base.findViewById(R.id.tvContactName);
		}
		return tvContactName;
	}

	public TextView getTvNumber() {
		if (tvNumber == null) {
			tvNumber = (TextView) base.findViewById(R.id.tvNumber);
		}
		return tvNumber;
	}

	public TextView getTvTime() {
		if (tvTime == null) {
			tvTime = (TextView) base.findViewById(R.id.tvTime);
		}
		return tvTime;
	}

	public TextView getTvLong() {
		if (tvLong == null) {
			tvLong = (TextView) base.findViewById(R.id.tvLong);
		}
		return tvLong;
	}

}
